package com.douxg.fastCoding.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Description
 * @Auther
 * @Date 2020-07-21 23:50:59
 */
@Data
@Accessors(chain = true)
public class DbInfo {
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //数据库别名
    private String name;
    //数据库域名或者ip
    private String host;
    //数据库端口
    private String port;
    //数据库名称
    private String dbName;
    //数据库连接url
    private String jdbcUrl;
    //数据库用户名
    private String userName;
    //数据库密码
    private String password;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
    //项目id
    private Long projectId;
    //驱动
    @TableField(exist = false)
    private String driverClass;
    //配置，格式json
    private String config;
    //数据库类型，比如mysql
    private String dbType;
}
